import { Button, Result } from 'antd'
import React from 'react'
import { useHistory } from 'react-router'

export default function NoLogin() {
    const history = useHistory()
    return (
        <Result
            status="403"
            title="登录过期"
            subTitle="对不起,请重新登录!"
            extra={<Button type="primary" onClick={() => history.push("/")}>返回登录</Button>}
        />
    )
}
